<script lang="ts" setup>
// 初始化一下
import { ref } from "vue";

const item = {
  date: "2016-05-02",
  name: "Toms",
  address: "No. 189, Grove St, Los Angeles",
};

const tableData = ref(Array.from({ length: 10 }).fill(item));
</script>
<template>
  <div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="date" label="Date" width="180" />
      <el-table-column prop="name" label="Name" width="180" />
      <el-table-column prop="address" label="Address" />
    </el-table>
  </div>
</template>

<style lang="less" scoped></style>
